package com.fnzx.dao;

import com.fnzx.entity.ProjectEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fnzx.entity.vo.PersonalProjectVo;
import com.fnzx.entity.vo.ProjectAdminVo;
import com.fnzx.entity.vo.ProjectScoreAdminVo;
import com.fnzx.entity.vo.ProjectVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2021-10-23 22:20:00
 */
@Mapper
public interface ProjectDao extends BaseMapper<ProjectEntity> {

    List<ProjectAdminVo> listProject();

    List<ProjectVo> listProjectByStatus(String status, String date);

    List<PersonalProjectVo> listByPersonalId(String personalId);

    String listPersonalScore(String projectId, String userType);

    List<ProjectAdminVo> listProjectByAdmin(Long adminId);

    List<ProjectScoreAdminVo> listProjectByStatusAndId(String status, String date, String adminId);

    void updateStatus(String projectId, String status);
}
